<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ', 							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 					'ab');
define('FOPEN_READ_WRITE_CREATE', 				'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 			'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');


/*
|--------------------------------------------------------------------------
| Custom application defined constants
|--------------------------------------------------------------------------
*/

define('SITE_MAINTENANCE', FALSE);

define('MAX_TAG_LENGTH', 40);
define('THREE_MONTHS', 3 * 30 * 24 * 60 * 60);
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'));
define('GLOBAL_USER_KEY', "asd234gjlsw049g02a;vnrgh3904gh;S]fgu-89g`23@#NKdcLJ@E#*R#JbH#*(#QJHFS:kgh389ru#*'");
define('TASKS_KEY', 's73kg9dk*%FW&72MV.<SLAo9d9!FDSx~');

# --- account operations statutes --- #
define('GENERAL_ERROR', 1);
define('OK_CHANGE_PASS', 2);
define('ERR_CHANGE_PASS', 3);
define('OK_RECOVERY_KEY_SENT', 4);
define('OK_CHANGE_EMAIL', 5);
define('OK_BUG_SAVED', 6);
define('ERR_TOO_MANY_RECOVERY_ATTEMPTS', 7);

# --- tasks --- #
//define('TASKS_LIMIT_PER_QUERY', 10);
define('MAX_TASKS_VISIBLE_ON_START', 50);
define('OLD_TASKS_NUM_TO_RETRIEVE', 20); # how many tasks will be fetched when OLDER (than MAX_TASKS_VISIBLE_ON_START) tasks are requested


/* End of file constants.php */
/* Location: ./system/application/config/constants.php */